
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />        
    
<title>管理员登录界面--类别管理页面</title>

</head>
<body>  

<!-- 头部 -->
<%@ include file="../common/backend/top.jsp" %>

<script type="text/javascript">
	/* $(function(){
		
	}); */
	function test(){
		alert("test");
		//"/GoodsServlet"   /back/GoodsServlet
		$.post(contentPath+"/GoodsServlet","opr=list",function(data){
			alert("success");
		});
	}
</script>


<!-- 左边菜单 -->
<div class="m_left">
	<%@ include file="../common/backend/left.jsp" %>
</div>
<div class="m_right" id="content">
	<div class="mem_tit">分类列表</div>
	<p align="right">
		<a href="javascript:void(0);" onclick="toAddProductCategory();" class="add_b">添加分类</a>
		<br>
	</p>
	<br>
	<button onclick="test()">测试</button>
	<table border="0" class="order_tab" style="width:930px; text-align:center; margin-bottom:30px;" cellspacing="0" cellpadding="0">
		<tbody>
			<tr>
				<td width="5%">选择</td>
				<td width="20%">分类名称</td>
				<td width="25%">分类级别</td>
				<td width="25%">父级分类</td>
				<td width="25%">操作</td>
			</tr>

			<tr>
				<td width="5%">
					<input type="radio" value="548" name="select" onclick="toUpdateProductCategoryList(this);"></td>
				<td>化妆品</td>
				<td>一级分类</td>
				<td>无</td>
				<td>
					<a href="javascript:void(0);" onclick="deleteProductCategory(548,1);">删除</a>
				</td>
			</tr>

			<tr>
				<td width="5%"><input type="radio" value="628" name="select" onclick="toUpdateProductCategoryList(this);"></td>
				<td>家用商品</td>
				<td>一级分类</td>
				<td>无</td>
				<td>
					<a href="javascript:void(0);" onclick="deleteProductCategory(628,1);">删除</a>
				</td>
			</tr>

			<tr>
				<td width="5%"><input type="radio" value="654" name="select" onclick="toUpdateProductCategoryList(this);"></td>
				<td>面部护理</td>
				<td>二级分类</td>
				<td>无</td>
				<td>
					<a href="javascript:void(0);" onclick="deleteProductCategory(654,2);">删除</a>
				</td>
			</tr>

			<tr>
				<td width="5%"><input type="radio" value="655" name="select" onclick="toUpdateProductCategoryList(this);"></td>
				<td>少女派</td>
				<td>三级分类</td>
				<td>无</td>
				<td>
					<a href="javascript:void(0);" onclick="deleteProductCategory(655,3);">删除</a>
				</td>
			</tr>

			<tr>
				<td width="5%"><input type="radio" value="656" name="select" onclick="toUpdateProductCategoryList(this);"></td>
				<td>餐具</td>
				<td>二级分类</td>
				<td>无</td>
				<td>
					<a href="javascript:void(0);" onclick="deleteProductCategory(656,2);">删除</a>
				</td>
			</tr>

			<tr>
				<td width="5%"><input type="radio" value="657" name="select" onclick="toUpdateProductCategoryList(this);"></td>
				<td>卫具</td>
				<td>二级分类</td>
				<td>无</td>
				<td>
					<a href="javascript:void(0);" onclick="deleteProductCategory(657,2);">删除</a>
				</td>
			</tr>

			<tr>
				<td width="5%"><input type="radio" value="658" name="select" onclick="toUpdateProductCategoryList(this);"></td>
				<td>叉子</td>
				<td>三级分类</td>
				<td>无</td>
				<td>
					<a href="javascript:void(0);" onclick="deleteProductCategory(658,3);">删除</a>
				</td>
			</tr>

			<tr>
				<td width="5%"><input type="radio" value="659" name="select" onclick="toUpdateProductCategoryList(this);"></td>
				<td>锅</td>
				<td>三级分类</td>
				<td>无</td>
				<td>
					<a href="javascript:void(0);" onclick="deleteProductCategory(659,3);">删除</a>
				</td>
			</tr>

		</tbody>
	</table>

	<div class="pages">
		<a href="#" class="p_pre">首页</a>
		<a href="#" class="cur">1</a>
		<a href="#">2</a>
		<a href="#">3</a>
		<a href="#">4</a>
		<a href="#" class="p_pre">下一页</a>
		<a href="#" class="p_pre">尾页</a>
	</div>

	<div id="addProductCategory">

		<table border="0" class="add_tab" style="width:930px;" cellspacing="0" cellpadding="0">
			<tbody>
				<tr>
					<td width="135" align="right">分类级别</td>
					<td colspan="3" style="font-family:'宋体';">
						<select class="jj" name="type" style="background-color:#f6f6f6;" id="type" onchange="selectProductCategoryLevel(this);" disabled="disabled">
							<option value="" selected="selected">请选择...</option>
							<option value="1">一级分类
							</option>
							<option value="2">二级分类
							</option>
							<option value="3" selected="selected">三级分类
							</option>
						</select>
					</td>
				</tr>
				<tr>
					<td width="135" align="right">一级分类</td>
					<td colspan="3" style="font-family:'宋体';">
						<select class="jj" name="productCategoryLevel1" style="background-color:#f6f6f6;" id="productCategoryLevel1" onchange="queryProductCategoryList(this,'productCategoryLevel2');">
							<option value="0" selected="selected">请选择...</option>
		
							<option value="548">化妆品</option>
		
							<option value="628" selected="selected">家用商品</option>
		
							<option value="660">进口食品,生鲜</option>
		
							<option value="670">电子商品</option>
		
							<option value="676">保健食品</option>
		
							<option value="681">箱包</option>
		
						</select>
					</td>
				</tr>
				<tr>
					<td width="135" align="right">二级分类</td>
					<td>
						<select class="jj" name="productCategoryLevel2" style="background-color:#f6f6f6;" id="productCategoryLevel2">
							<option value="0" selected="selected">请选择...</option>
		
							<option value="654">面部护理</option>
		
							<option value="656" selected="selected">餐具</option>
		
							<option value="657">卫具</option>
		
							<option value="661">零食/糖果/巧克力</option>
		
							<option value="671">手机</option>
		
							<option value="674">手环</option>
		
							<option value="677">老年保健品</option>
		
							<option value="678">中年营养品</option>
		
							<option value="679">儿童保健品</option>
		
							<option value="682">旅行箱</option>
		
							<option value="683">手提箱</option>
		
							<option value="690">电脑</option>
		
							<option value="696">客厅专用</option>
		
						</select>
					</td>
				</tr>
				<tr>
					<td align="right">分类名称</td>
					<td style="font-family:'宋体';">
						<input type="text" value="锅" class="add_ipt" id="name">（必填）
						<input type="hidden" name="id" value="659" id="id">
					</td>
				</tr>
			</tbody>
		</table>
		<p align="right">
			<br>
			<a href="javascript:void(0);" onclick="saveOrUpdate();" class="add_b">确认修改</a>
		</p>
	</div>
</div> 
</div>
    
<%@include file="../common/backend/bottom.jsp" %>
</body>


<!--[if IE 6]>
<script src="//letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>
